package com.esri.core.map;

import java.io.IOException;
import org.codehaus.jackson.JsonParseException;
import org.codehaus.jackson.JsonParser;
import org.codehaus.jackson.JsonToken;

/* loaded from: classes.dex */
public class TimeReference {
    private String a;
    private boolean b;

    public String getTimeZone() {
        return this.a;
    }

    public boolean respectsDaylightSaving() {
        return this.b;
    }

    public static TimeReference fromJson(JsonParser jsonParser) throws JsonParseException, IOException {
        if (jsonParser.getCurrentToken() != JsonToken.START_OBJECT) {
            return null;
        }
        TimeReference timeReference = new TimeReference();
        while (jsonParser.nextToken() != JsonToken.END_OBJECT) {
            jsonParser.getCurrentName();
            String currentName = jsonParser.getCurrentName();
            jsonParser.nextToken();
            if ("timeZone".equals(currentName)) {
                timeReference.a = jsonParser.getText();
            } else if ("respectsDaylightSaving".equals(currentName)) {
                timeReference.b = jsonParser.getBooleanValue();
            } else {
                jsonParser.skipChildren();
            }
        }
        return timeReference;
    }
}
